package com.zxj.system.domain.exam.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 竞赛添加 DTO
 *
 * @author zxj2022
 * @date 2024/12/29
 */
@Getter
@Setter
@Schema(name = "ExamAddDTO", description = "竞赛添加DTO")
public class ExamAddDTO {

    /** 标题 */
    @Schema(name = "title", description = "竞赛标题")
    @NotNull(message = "竞赛标题不能为空")
    private String title;

    /** 开始时间 */
    @Schema(name = "startTime", description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    /** 结束时间 */
    @Schema(name = "endTime", description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;
}
